#include <iostream>
#include <vector>
using namespace std;
const int N = 1e5 + 10;
vector<int> eg[N];
int main()
{
	int n;
	cin >> n;
	for (int i = 1;i < n;i++)
	{
		int a, b;
		cin >> a >> b;
		eg[a].push_back(b);
		eg[b].push_back(a);

	}
	return 0;
}